<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@page import="java.io.FileOutputStream"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.io.File"%>
<%@page import="java.io.OutputStream"%>
<html>
<head>
<title>Muzycy.pl - serwis informacyjno usługowy o muzykach</title>
<META HTTP-EQUIV="Content-Type"
	CONTENT="text/html; charset=windows-1250">
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>

<div id="body">
	<div id="menu">
		<div class="logged">
		Zalogowany jako: <b><security:authentication
						property="principal.username" /></b>
		</div>
		<ul>
			<li>
			<a href="uzytkownicy.htm" class="active"><img src="images/butt_users.jpg" alt="" width="160" height="67" />	</a>
			</li>
			<li>
			<a href="adminnews.htm"><img src="images/butt_news.jpg"	alt="" width="100" height="67" /></a>
			</li>
			<li>
			<a href="comments.htm"><img src="images/butt_comments.jpg" alt="" width="160" height="67" /></a>
			</li>
			<li>
			<a href="mojekonto.htm"><img src="images/butt_logout.jpg" alt="" width="125" height="67" /></a>
			</li>			
		</ul>
		
		<div class="slogan">
			<img src="images/slogan_moje_konto.jpg" alt="" width="594" height="144" />
		</div>
	</div>
	<div id="overview">
		
		<div id="box">
			<ul id="tabs">
				<li><a href="#box_1">Dane użytkownika </a></li>
				
				
			</ul>
			<ul id="boxes">

				<li id="box_1" class="box">
					<h1>Edytuj użytkownika: <c:out value="${editedUser.username }" /></h1> <br />
					<form:form action="adminuseredit=${editedUser.username}.htm"
						commandName="editedUser">
						<ul>
							<li>Imię:</li>
							<li><input type="text" name="name" value="${editedUser.name}"/> </li>
							<li><span class="warning"><c:out value="${nameError}"/></span></li>
						</ul>
						<ul>
							<li>Nazwisko:</li>
							<li><input type="text" name="lastname" value="${editedUser.lastname}"/> </li>
							<li><span class="warning"><c:out value="${lastnameError}"/></span></li>
						</ul>
						<ul>
							<li>Email:</li>
							<li><input type="text" name="email" value="${editedUser.email}"/> </li>
							<li><span class="warning"><c:out value="${emailError}"/></span></li>
						</ul>
						<ul>
							<li>Telefon:</li>
							<li><input type="text" name="telephone" value="${editedUser.telephone}"/> </li>
							<li><span class="warning"><c:out value="${telephoneError}"/></span></li>
						</ul>
						<ul>
							<li>Miasto:</li>
							<li><input type="text" name="city" value="${editedUser.city}"/> </li>
							<li><span class="warning"><c:out value="${cityError}"/></span></li>
						</ul>
						<ul>
							<li>Państwo:</li>
							<li><input type="text" name="country" value="${editedUser.country}"/> </li>
							<li><span class="warning"><c:out value="${countryError}"/></span></li>
						</ul>
						<%-- <ul>
							<li>Dołączył:</li>
							<li><c:out value="${user.joined}"></c:out></li>
						</ul> --%>
						<ul>
							<li/><li><input type="submit" class="myButton2" value="Zmień dane"></li>
						</ul>
					</form:form>
					</li>
			</ul>

		</div>

		<div id="footer" style="margin-left:0px">
			<div id="copyright">
				Copyright Czesiu. All rights reserved. Design by <a
					href="http://nyan.cat">NyanCat</a>
			</div>
		</div>
	</div>
</div>
</html>